package com.example.lishop.service

import com.example.lishop.entity.BBusinessEntity
import com.example.lishop.entity.BProductEntity
import org.springframework.data.domain.Page

/**
 * Created on 2021/3/14 17:58
 * @author shuguo
 */
interface ProductService {
    fun add(data:BProductEntity):BProductEntity
    fun update(data:BProductEntity)
    fun del(data: BProductEntity)
    fun list (page:Int, size:Int): Page<BProductEntity>
    fun detail(data: BProductEntity): BProductEntity?
    fun listByBusinessId(businessId:String): List<BProductEntity>
}